package com.tjetc.dao;

import com.tjetc.domain.Adopter;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AdoptMapper {

    Adopter getByUserNameAndPassword(@Param("username") String username,@Param("password") String password);

    @Insert("insert into adopter(username, password, name, email, phone, address) VALUES " +
            "(#{username},#{password},#{name},#{email},#{phone},#{address})")
    int add(Adopter adopter);
}
